/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-09-26 11:05:30
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-11-16 14:31:04
 * @FilePath: \ZHGD-Vue2\src\api\system\alarmNotification.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// （报警通知&&试验通知管理）列表
export function alarmNotificationList(query) {
  return request({
    url: '/zhgd/nWarningUserMessage/page',
    method: 'get',
    params: query
  })
}


// 修改报警通知管理
export function editNWarningUserMessage(data) {
  return request({
    url: '/zhgd/nWarningUserMessage',
    method: 'put',
    data: data
  })
}


// 修改试验通知管理
export function nWarningUserMessageEdit(data) {
  return request({
    url: '/zhgd/nWarningUserMessage/edit',
    method: 'put',
    data: data
  })
}

// 短信是否启用
export function nWarningUsingStatus(query) {
  return request({
    url: '/zhgd/nWarningUsing/list',
    method: 'get',
    params: query
  })
}

// 是否启用短信通知
export function nWarningUsing(data) {
  return request({
    url: '/zhgd/nWarningUsing',
    method: 'put',
    data: data
  })
}
// 报警分析
export function warningSyList(query) {
  return request({
    url: '/zhgd/warningSy/list',
    method: 'get',
    params: query
  })
}
// 删除报警信息
export function remove(id) {
  return request({
    url: '/zhgd/warningSy/' + id,
    method: 'delete'
  })
}

